<template>
  <div class="boss">
    <head-page
      :title="title"
      style="border-bottom: 2px solid #dad9df"
      id="backstyle"
    >
      <img src="../../assets/black_dian.png" alt="" />
    </head-page>
    <div class="war">
      <div class="area-center">
        <div class="xiao m-t-0 title-center">
          <div class="num">{{ this.$route.query.index }}.</div>
          <div class="zhong">
            {{ this.$route.query.name }}
          </div>
        </div>
        <!-- 内容区域 -->
        <div class="context richText m-t-10 bold-size" v-html="list"></div>
      </div>
    </div>
  </div>
</template>

<script>
import { messageDetailsId } from "@/api/index";
export default {
  data() {
    return {
      list: "",
      title: "",
    };
  },
  mounted() {
    messageDetailsId({
      messageDetailsId: this.$route.query.id,
    }).then((res) => {
      if (res.data.code == 200) {
        this.title = res.data.data.messageTitle;
        this.list = this.dataHTML(res.data.data.detailsContent);
      }
    });
  },
};
</script>

<style scoped>
.boss {
  width: 100%;
}
img {
  width: 0.2rem;
  padding-right: 5px;
}
.xiao {
  width: 100%;
  display: flex;
  background-color: white;
}
/* 左边区域 */
.xiao .num {
  height: 0.3rem;
  margin-left: 0.1rem;
  text-align: center;
  line-height: 0.3rem;
}

/* 中间区域 */
.zhong {
  width: 95%;
  height: 100%;
  line-height: 0.3rem;
  padding-left: 0.05rem;
}
.context {
  width: 100%;
  background-color: white;
}
</style>